/*****************************************************************************************
   
   Copyright (c) Microsoft Corporation. All rights reserved.

   Use of this code sample is subject to the terms of the Microsoft
   Permissive License, a copy of which should always be distributed with
   this file.  You can also access a copy of this license agreement at:
   http://www.microsoft.com/resources/sharedsource/licensingbasics/permissivelicense.mspx

 ****************************************************************************************/

using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace WindowsApplication1
{
	/// <summary>
	/// Summary description for Form1.
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private System.Windows.Forms.ListBox listBox1;
		private System.Windows.Forms.DataGrid dataGrid1;
        private GrooveWebServicesV12Controls.ContactAwarenessViewer contactAwarenessViewer1;
        private GrooveWebServicesV12Controls.MemberAwarenessViewer memberAwarenessViewer1;
        private GrooveWebServicesV12Controls.TreeViewNavigator treeViewNavigator1;
		/// <summary>
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
            //
			// Required for Windows Form Designer support
			//
			InitializeComponent();

            contactAwarenessViewer1.Start();
            memberAwarenessViewer1.Start();

			//
			// TODO: Add any constructor code after InitializeComponent call
			//
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.listBox1 = new System.Windows.Forms.ListBox();
            this.dataGrid1 = new System.Windows.Forms.DataGrid();
            this.contactAwarenessViewer1 = new GrooveWebServicesV12Controls.ContactAwarenessViewer();
            this.memberAwarenessViewer1 = new GrooveWebServicesV12Controls.MemberAwarenessViewer();
            this.treeViewNavigator1 = new GrooveWebServicesV12Controls.TreeViewNavigator();
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
            this.SuspendLayout();
            // 
            // listBox1
            // 
            this.listBox1.Font = new System.Drawing.Font("Courier New", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.listBox1.HorizontalScrollbar = true;
            this.listBox1.ItemHeight = 14;
            this.listBox1.Location = new System.Drawing.Point(8, 8);
            this.listBox1.Name = "listBox1";
            this.listBox1.Size = new System.Drawing.Size(1280, 312);
            this.listBox1.TabIndex = 0;
            this.listBox1.SelectedIndexChanged += new System.EventHandler(this.listBox1_SelectedIndexChanged);
            this.listBox1.DoubleClick += new System.EventHandler(this.listBox1_DoubleClick);
            // 
            // dataGrid1
            // 
            this.dataGrid1.DataMember = "";
            this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
            this.dataGrid1.Location = new System.Drawing.Point(8, 360);
            this.dataGrid1.Name = "dataGrid1";
            this.dataGrid1.Size = new System.Drawing.Size(339, 183);
            this.dataGrid1.TabIndex = 1;
            // 
            // contactAwarenessViewer1
            // 
            this.contactAwarenessViewer1.Account = null;
            this.contactAwarenessViewer1.Identity = null;
            this.contactAwarenessViewer1.Location = new System.Drawing.Point(362, 360);
            this.contactAwarenessViewer1.Name = "contactAwarenessViewer1";
            this.contactAwarenessViewer1.Size = new System.Drawing.Size(173, 187);
            this.contactAwarenessViewer1.TabIndex = 2;
            // 
            // memberAwarenessViewer1
            // 
            this.memberAwarenessViewer1.Location = new System.Drawing.Point(541, 360);
            this.memberAwarenessViewer1.Name = "memberAwarenessViewer1";
            this.memberAwarenessViewer1.Size = new System.Drawing.Size(208, 216);
            this.memberAwarenessViewer1.Space = null;
            this.memberAwarenessViewer1.TabIndex = 3;
            // 
            // treeViewNavigator1
            // 
            this.treeViewNavigator1.AlwaysShowAccounts = false;
            this.treeViewNavigator1.AlwaysShowIdentities = false;
            this.treeViewNavigator1.Cursor = System.Windows.Forms.Cursors.Default;
            this.treeViewNavigator1.HideCalendarTools = false;
            this.treeViewNavigator1.HideDiscussionTools = false;
            this.treeViewNavigator1.HideFilesTools = false;
            this.treeViewNavigator1.HideFormsTools = false;
            this.treeViewNavigator1.Location = new System.Drawing.Point(755, 360);
            this.treeViewNavigator1.Name = "treeViewNavigator1";
            this.treeViewNavigator1.Size = new System.Drawing.Size(256, 222);
            this.treeViewNavigator1.TabIndex = 4;
            // 
            // Form1
            // 
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
            this.ClientSize = new System.Drawing.Size(1284, 638);
            this.Controls.Add(this.treeViewNavigator1);
            this.Controls.Add(this.memberAwarenessViewer1);
            this.Controls.Add(this.contactAwarenessViewer1);
            this.Controls.Add(this.dataGrid1);
            this.Controls.Add(this.listBox1);
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "Form1";
            this.Text = "Form1";
            this.Load += new System.EventHandler(this.Form1_Load);
            ((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
            this.ResumeLayout(false);

		}
		#endregion

		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main() 
		{
			Application.Run(new Form1());
		}

		private void Form1_Load(object sender, System.EventArgs e)
		{
			Application.DoEvents();


            GrooveWebServicesV12Helpers.Context context = new GrooveWebServicesV12Helpers.Context();
            GrooveWebServicesV12Helpers.Account[] accounts = GrooveWebServicesV12Helpers.Account.GetAccounts(context);
            memberAwarenessViewer1.Space = accounts[0].Identities[0].StandardSpaces[0];


//            GrooveWebServicesV12Helpers.Context Context = new GrooveWebServicesV12Helpers.Context();
//            GrooveWebServicesV12Helpers.Account[] Accounts = GrooveWebServicesV12Helpers.Account.GetAccounts(Context);
//            foreach (GrooveWebServicesV12Helpers.Account Account in Accounts)
//            {
//                listBox1.Items.Add("");
//                listBox1.Items.Add("Account");
//                listBox1.Items.Add("  Name: " + Account.Name);
//                listBox1.Items.Add("  URI: " + Account.URI);
//                listBox1.Items.Add("  BindableURL: " + Account.BindableURL);

//                GrooveWebServicesV12Helpers.Identity[] Identities = Account.Identities;
//                foreach (GrooveWebServicesV12Helpers.Identity Identity in Identities)
//                {
//                    listBox1.Items.Add("");
//                    listBox1.Items.Add("  Identity");
//                    listBox1.Items.Add("    Name: " + Identity.Name);
//                    listBox1.Items.Add("    URI: " + Identity.URI);
//                    listBox1.Items.Add("    BindableURL: " + Identity.BindableURL);

//                    GrooveWebServicesV12Helpers.Space[] Spaces = Identity.StandardSpaces;
//                    foreach (GrooveWebServicesV12Helpers.Space Space in Spaces)
//                    {
//                        listBox1.Items.Add("");
//                        listBox1.Items.Add("    Space");
//                        listBox1.Items.Add("      Name: " + Space.Name);
//                        listBox1.Items.Add("      URI: " + Space.URI);
//                        listBox1.Items.Add("      BindableURL: " + Space.BindableURL);

//                        GrooveWebServicesV12Helpers.Member[] Members = Space.Members;
//                        foreach (GrooveWebServicesV12Helpers.Member Member in Members)
//                        {
//                            listBox1.Items.Add("");
//                            listBox1.Items.Add("      Member");
//                            listBox1.Items.Add("        Name: " + Member.Name);
//                            listBox1.Items.Add("        URI: " + Member.URI);
//                            listBox1.Items.Add("        BindableURL: " + Member.BindableURL);
//                        }

//                        GrooveWebServicesV12Helpers.Tool[] Tools = Space.Tools;
//                        foreach (GrooveWebServicesV12Helpers.Tool Tool in Tools)
//                        {
//                            listBox1.Items.Add("");
//                            listBox1.Items.Add("      Tool");
//                            listBox1.Items.Add("        Name: " + Tool.Name);
//                            listBox1.Items.Add("        URI: " + Tool.URI);
//                            listBox1.Items.Add("        ID: " + Tool.ID);
//                            listBox1.Items.Add("        BindableURL: " + Tool.BindableURL);

//                            if (Tool is GrooveWebServicesV12Helpers.Calendar.CalendarTool)
//                            {
//                                GrooveWebServicesV12Helpers.Calendar.CalendarTool CalendarTool = (GrooveWebServicesV12Helpers.Calendar.CalendarTool)Tool;

//                                GrooveWebServicesV12Helpers.Calendar.CalendarEntry[] CalendarEntries = CalendarTool.CalendarEntries;
//                                foreach (GrooveWebServicesV12Helpers.Calendar.CalendarEntry CalendarEntry in CalendarEntries)
//                                {
//                                    listBox1.Items.Add("");
//                                    listBox1.Items.Add("        Calendar Entry");
//                                    listBox1.Items.Add("          Description: " + CalendarEntry.Description);
//                                    listBox1.Items.Add("          URI: " + CalendarEntry.URI);
//                                    listBox1.Items.Add("          ID: " + CalendarEntry.ID);
//                                    listBox1.Items.Add("          BindableURL: " + CalendarEntry.BindableURL);
//                                }
//                            }
//                            else if (Tool is GrooveWebServicesV12Helpers.Discussion.DiscussionTool)
//                            {
//                                GrooveWebServicesV12Helpers.Discussion.DiscussionTool DiscussionTool = (GrooveWebServicesV12Helpers.Discussion.DiscussionTool)Tool;

//                                GrooveWebServicesV12Helpers.Discussion.DiscussionEntry[] DiscussionEntries = DiscussionTool.DiscussionEntries;
//                                foreach (GrooveWebServicesV12Helpers.Discussion.DiscussionEntry DiscussionEntry in DiscussionEntries)
//                                {
//                                    listBox1.Items.Add("");
//                                    listBox1.Items.Add("        Discussion Entry");
//                                    listBox1.Items.Add("          Subject: " + DiscussionEntry.Subject);
//                                    listBox1.Items.Add("          URI: " + DiscussionEntry.URI);
//                                    listBox1.Items.Add("          ID: " + DiscussionEntry.ID);
//                                    listBox1.Items.Add("          BindableURL: " + DiscussionEntry.BindableURL);
//                                }
//                            }
//                            else if (Tool is GrooveWebServicesV12Helpers.Files.FilesTool)
//                            {
//                                GrooveWebServicesV12Helpers.Files.FilesTool FilesTool = (GrooveWebServicesV12Helpers.Files.FilesTool)Tool;

//                                GrooveWebServicesV12Helpers.Files.Folder  RootFolder = FilesTool.RootFolder;
//                                DisplayFolders(RootFolder.Folders, 0);
//                                DisplayFiles(RootFolder.Files, 0);

//                                //RootFolder.Import(@"c:\temp\junk.txt");
//                                //RootFolder.Import(@"c:\junk");
//                                //RootFolder.Export(@"c:\junk2");
//                                //RootFolder.Files[0].Export(@"c:\junk3");
//                            }
//                            else if (Tool is GrooveWebServicesV12Helpers.Forms.FormsTool)
//                            {
//                                GrooveWebServicesV12Helpers.Forms.FormsTool FormsTool = (GrooveWebServicesV12Helpers.Forms.FormsTool)Tool;
								
//                                GrooveWebServicesV12Helpers.Forms.Form[] Forms = FormsTool.Forms;
//                                foreach (GrooveWebServicesV12Helpers.Forms.Form Form in Forms)
//                                {
//                                    listBox1.Items.Add("");
//                                    listBox1.Items.Add("        Form");
//                                    listBox1.Items.Add("          Name: " + Form.Name);
//                                    listBox1.Items.Add("          URI: " + Form.URI);
//                                    listBox1.Items.Add("          ID: " + Form.ID);
//                                    listBox1.Items.Add("          BindableURL: " + Form.BindableURL);

//                                    GrooveWebServicesV12Helpers.Forms.Field[] Fields = Form.Fields;
//                                    foreach (GrooveWebServicesV12Helpers.Forms.Field Field in Fields)
//                                    {
//                                        listBox1.Items.Add("");
//                                        listBox1.Items.Add("          Field");
//                                        listBox1.Items.Add("            Name: " + Field.Name);
//                                        listBox1.Items.Add("            URI: " + Field.URI);
//                                        listBox1.Items.Add("            ID: " + Field.ID);
//                                        listBox1.Items.Add("            BindableURL: " + Form.BindableURL);
//                                    }
//                                }

//                                GrooveWebServicesV12Helpers.Forms.View[] Views = FormsTool.Views;
//                                foreach (GrooveWebServicesV12Helpers.Forms.View View in Views)
//                                {
//                                    listBox1.Items.Add("");
//                                    listBox1.Items.Add("        View");
//                                    listBox1.Items.Add("          Name: " + View.Name);
//                                    listBox1.Items.Add("          URI: " + View.URI);
//                                    listBox1.Items.Add("          ID: " + View.ID);
//                                    listBox1.Items.Add("          BindableURL: " + View.BindableURL);
//                                }

//                                GrooveWebServicesV12Helpers.Forms.RecordDataSet RecordDataSet = FormsTool.Records;
//                                System.Data.DataSet DataSet = RecordDataSet.ToDataSet();
//                                this.dataGrid1.DataSource = DataSet;
								
//                                int xs = 0;
//                                ++xs;
//                            }

//                        }
//                    }

//                    //string[] FileURIs = new string[] {@"c:\temp\junk.txt", @"c:\temp\junk2.txt"};
//                    //string MessageURI = Identity.SendMessage(Identity.URI, "This is a test message", FileURIs);

////					Identity.ReplyToMessage
////						(
////						MessageURI,
////						"Here is the reply",
////						Identity.URI
////						);
////
////					Identity.ForwardMessage
////						(
////						MessageURI,
////						"Here is the forward",
////						Identity.URI
////						);
//                }

//                GrooveWebServicesV12Helpers.Contact[] PersonalContacts = Account.PersonalContacts;
//                foreach (GrooveWebServicesV12Helpers.Contact Contact in PersonalContacts)
//                {
//                    listBox1.Items.Add("");
//                    listBox1.Items.Add("  Personal Contact");
//                    listBox1.Items.Add("    Name: " + Contact.Name);
//                    listBox1.Items.Add("    URI: " + Contact.URI);
//                    listBox1.Items.Add("    BindableURL: " + Contact.BindableURL);
//                }

//                //GrooveWebServicesV12Helpers.GrooveVCardWebService.vCard VCard = GrooveWebServicesV12Helpers.VCard.GetRawVCard
//                //    (
//                //    Identities[0].URI,
//                //    PersonalContacts[0].URI,
//                //    Context
//                //    );


//            }

//            //  Bind tests
//            GrooveWebServicesV12Helpers.Account BindTestAccount = Accounts[0];
//            GrooveWebServicesV12Helpers.Identity BindTestIdentity = BindTestAccount.Identities[0];
//            //GrooveWebServicesV12Helpers.Contact BindTestContact = BindTestAccount.PersonalContacts[0];
//            GrooveWebServicesV12Helpers.Space BindTestSpace = BindTestIdentity.StandardSpaces[0];
//            GrooveWebServicesV12Helpers.Tool BindTestTool = BindTestSpace.Tools[0];

//            GrooveWebServicesV12Helpers.Account BoundAccount = (GrooveWebServicesV12Helpers.Account)GrooveWebServicesV12Helpers.BindServices.Bind
//                (
//                BindTestAccount.BindableURL,
//                Context
//                );

//            GrooveWebServicesV12Helpers.Identity BoundIdentity = (GrooveWebServicesV12Helpers.Identity)GrooveWebServicesV12Helpers.BindServices.Bind
//                (
//                BindTestIdentity.BindableURL,
//                Context
//                );

//            //GrooveWebServicesV12Helpers.Contact BoundContact = (GrooveWebServicesV12Helpers.Contact)GrooveWebServicesV12Helpers.BindServices.Bind
//            //    (
//            //    BindTestContact.BindableURL,
//            //    Context
//            //    );

//            GrooveWebServicesV12Helpers.Space BoundSpace = (GrooveWebServicesV12Helpers.Space)GrooveWebServicesV12Helpers.BindServices.Bind
//                (
//                BindTestSpace.BindableURL,
//                Context
//                );

//            GrooveWebServicesV12Helpers.Tool BoundTool = (GrooveWebServicesV12Helpers.Tool)GrooveWebServicesV12Helpers.BindServices.Bind
//                (
//                BindTestTool.BindableURL,
//                Context
//                );

//            object BoundToolEntry = null;
//            if (BoundTool is GrooveWebServicesV12Helpers.Calendar.CalendarTool)
//            {
//                GrooveWebServicesV12Helpers.Calendar.CalendarTool CalendarTool = (GrooveWebServicesV12Helpers.Calendar.CalendarTool)BoundTool;
//                GrooveWebServicesV12Helpers.Calendar.CalendarEntry[] CalendarEntries = CalendarTool.CalendarEntries;

//                if (CalendarEntries.Length != 0)
//                {
//                    BoundToolEntry = GrooveWebServicesV12Helpers.BindServices.Bind
//                        (
//                        CalendarEntries[0].BindableURL,
//                        Context
//                        );
//                }
//                else
//                {
//                    System.Diagnostics.Debug.WriteLine("No calendar entries to test binding!");
//                }
//            }
//            else if (BoundTool is GrooveWebServicesV12Helpers.Discussion.DiscussionTool)
//            {
//                GrooveWebServicesV12Helpers.Discussion.DiscussionTool DiscussionTool = (GrooveWebServicesV12Helpers.Discussion.DiscussionTool)BoundTool;
//                GrooveWebServicesV12Helpers.Discussion.DiscussionEntry[] DiscussionEntries = DiscussionTool.DiscussionEntries;

//                if (DiscussionEntries.Length != 0)
//                {
//                    BoundToolEntry = GrooveWebServicesV12Helpers.BindServices.Bind
//                        (
//                        DiscussionEntries[0].BindableURL,
//                        Context
//                        );
//                }
//                else
//                {
//                    System.Diagnostics.Debug.WriteLine("No discussion entries to test binding!");
//                }
//            }
//            else if (BoundTool is GrooveWebServicesV12Helpers.Files.FilesTool)
//            {
//                GrooveWebServicesV12Helpers.Files.FilesTool FilesTool = (GrooveWebServicesV12Helpers.Files.FilesTool)BoundTool;
//                GrooveWebServicesV12Helpers.Files.Folder  RootFolder = FilesTool.RootFolder;
//                GrooveWebServicesV12Helpers.Files.File[] Files = RootFolder.Files;
				
//                if (Files.Length != 0)
//                {
//                    BoundToolEntry = GrooveWebServicesV12Helpers.BindServices.Bind
//                        (
//                        Files[0].BindableURL,
//                        Context
//                        );
//                }
//                else
//                    System.Diagnostics.Debug.WriteLine("No files to test binding!");

//                GrooveWebServicesV12Helpers.Files.Folder [] Folders = RootFolder.Folders;

//                if (Folders.Length != 0)
//                {
//                    BoundToolEntry = GrooveWebServicesV12Helpers.BindServices.Bind
//                        (
//                        Folders[0].BindableURL,
//                        Context
//                        );
//                }
//                else
//                    System.Diagnostics.Debug.WriteLine("No folders to test binding!");

//            }
//            else if (BoundTool is GrooveWebServicesV12Helpers.Forms.FormsTool)
//            {
//                GrooveWebServicesV12Helpers.Forms.FormsTool FormsTool = (GrooveWebServicesV12Helpers.Forms.FormsTool)BoundTool;
//                GrooveWebServicesV12Helpers.Forms.Form[] Forms = FormsTool.Forms;

//                BoundToolEntry = GrooveWebServicesV12Helpers.BindServices.Bind
//                    (
//                    Forms[0].BindableURL,
//                    Context
//                    );

//                GrooveWebServicesV12Helpers.Forms.Field[] Fields = Forms[0].Fields;
//                BoundToolEntry = GrooveWebServicesV12Helpers.BindServices.Bind
//                    (
//                    Fields[0].BindableURL,
//                    Context
//                    );

//                GrooveWebServicesV12Helpers.Forms.View[] Views = FormsTool.Views;
//                BoundToolEntry = GrooveWebServicesV12Helpers.BindServices.Bind
//                    (
//                    Views[0].BindableURL,
//                    Context
//                    );
//            }
//            else
//                throw new System.Exception("Unknown tool type!");

//            GrooveWebServicesV12Helpers.ContactDirectory[] ContactDirectories = Accounts[0].ContactDirectories;
//            foreach (GrooveWebServicesV12Helpers.ContactDirectory ContactDirectory in ContactDirectories)
//            {
//                GrooveWebServicesV12Helpers.ContactSummary[] ContactSummaries = ContactDirectory.Search("John");

//                foreach (GrooveWebServicesV12Helpers.ContactSummary ContactSummary in ContactSummaries)
//                {
//                    listBox1.Items.Add("");
//                    listBox1.Items.Add("  Contact Summary");
//                    listBox1.Items.Add("    FullName: " + ContactSummary.FullName);
//                    listBox1.Items.Add("    URI: " + ContactSummary.URI);
//                }

//                GrooveWebServicesV12Helpers.Contact Contact = ContactDirectory.Fetch(ContactSummaries[0].URI);

//                listBox1.Items.Add("");
//                listBox1.Items.Add("  Contact Summaries[0] Contact");
//                listBox1.Items.Add("    Awareness: " + Contact.Awareness);
//                listBox1.Items.Add("    Name: " + Contact.Name);
//                listBox1.Items.Add("    IdentitiyURL: " + Contact.IdentityURL);
//                listBox1.Items.Add("    TimeWentIdle: " + Contact.TimeWentIdle);
//                listBox1.Items.Add("    BindableURL: " + Contact.BindableURL);
//            }
		}

		private void DisplayFolders(GrooveWebServicesV12Helpers.Files.Folder[] i_Folders, int i_IndentCount)
		{
			string Indent = new string(' ', i_IndentCount * 2);

			GrooveWebServicesV12Helpers.Files.Folder [] Folders = i_Folders;
			foreach (GrooveWebServicesV12Helpers.Files.Folder  Folder in Folders)
			{
				if (Folder.Name == "$ComponentGroup")
					continue;

				listBox1.Items.Add("");
				listBox1.Items.Add("        " + Indent + "Folder");
				listBox1.Items.Add("          " + Indent + "Name: " + Folder.Name);
				listBox1.Items.Add("          " + Indent + "URI: " + Folder.URI);
				listBox1.Items.Add("          " + Indent + "ID: " + Folder.ID);
				listBox1.Items.Add("          " + Indent + "ParentFolderID: " + Folder.ParentFolderID);
				listBox1.Items.Add("          " + Indent + "BindableURL: " + Folder.BindableURL);

				DisplayFolders(Folder.Folders, i_IndentCount + 1);
				DisplayFiles(Folder.Files, i_IndentCount + 1);
			}
		}

		private void DisplayFiles(GrooveWebServicesV12Helpers.Files.File[] i_Files, int i_IndentCount)
		{
			string Indent = new string(' ', i_IndentCount * 2);

			GrooveWebServicesV12Helpers.Files.File[] Files = i_Files;
			foreach (GrooveWebServicesV12Helpers.Files.File File in Files)
			{
				listBox1.Items.Add("");
				listBox1.Items.Add("        " + Indent + "File");
				listBox1.Items.Add("          " + Indent + "Name: " + File.Name);
				listBox1.Items.Add("          " + Indent + "URI: " + File.URI);
				listBox1.Items.Add("          " + Indent + "ID: " + File.ID);
				listBox1.Items.Add("          " + Indent + "ParentFolderID: " + File.ParentFolderID);
				listBox1.Items.Add("          " + Indent + "BindableURL: " + File.BindableURL);
			}
		}

		private void listBox1_SelectedIndexChanged(object sender, System.EventArgs e)
		{
		
		}

		private void listBox1_DoubleClick(object sender, System.EventArgs e)
		{
			System.Diagnostics.Debug.WriteLine(listBox1.SelectedItem);
		}
	}
}
